#pragma once
#include <osg/Vec3d>

#include "CmdHandler3.h"

class Ent2D;
class UCS;
class D2To3Handler : public CmdHandler3
{
	Q_OBJECT
public:
	Q_INVOKABLE D2To3Handler();
	~D2To3Handler();

	virtual void input(const QVariant& data, const QString& rawInput, CommandSource cs) override;
	void to3ds(std::set<std::shared_ptr<Ent2D>>& origins, std::set<std::shared_ptr<INode>>& children);
	osg::Vec3d m_start;
	osg::Vec3d m_end;
	std::set<std::shared_ptr<Ent2D>> m_origins;
	std::set<std::shared_ptr<INode>> m_ent3ds;
	UCS* m_ucs;
};
